/*
 * $Id: FailureRecordManagerImpl.java,v 1.3 2012/04/29 21:58:30 navdeep_mahajan Exp $
 * 
 * Copyright (C) 2010 General Electric Company. All Rights Reserved.
 * 
 * This software is the confidential and proprietary information of the General
 * Electric Company (GE). You shall not disclose this software and shall use it
 * only in accordance with the terms of the license agreement you entered into
 * with GE.
 * 
 * GE MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
 * SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
 * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR
 * NON-INFRINGEMENT. GE SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE
 * AS A RESULT OF USING, MODIFYING, OR DISTRIBUTING THIS SOFTWARE OR ITS
 * DERIVATIVES.
 */

package com.ge.healthcare.autosc.ui.assetReg.service;

import java.util.List;

import com.ge.healthcare.autosc.ui.assetReg.domain.SblAssetRegFailRec;
import com.ge.healthcare.autosc.ui.assetReg.exceptions.AssetRegisterException;
import com.ge.healthcare.autosc.ui.assetReg.service.AssetRegistrationHelper.RegistrationType;
import com.ge.med.service.eds.commons.DataException;
import com.ge.med.service.eds.commons.ResourceException;

public class FailureRecordManagerImpl implements FailureRecordManager {

	private AssetRegistrationHelper managerHelper;
	public void setManagerHelper(AssetRegistrationHelper managerHelper) {
		this.managerHelper = managerHelper;
	}
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	SblAssetRegFailRec failureRecord;
	List<SblAssetRegFailRec> failureRecords;
	
	public SblAssetRegFailRec getFailureRecord(String systemId) throws AssetRegisterException {
		return managerHelper.getFailureRecord(systemId);
	}

	public List<SblAssetRegFailRec> getAllFailureRecords() throws AssetRegisterException {
		return managerHelper.getAllFailureRecord();
	}

	public void registerAndRemoveRecord(SblAssetRegFailRec record,RegistrationType registrationType) throws AssetRegisterException, DataException, ResourceException {
		 managerHelper.registerAndRemoveRecord(record, registrationType);
	}
}
